{% extends "main/index.html" %}

{% load i18n %}

<link type="text/css" rel="stylesheet" href="/site-media/default.css" />
{% block title %}
<head><title>{% trans "Document" %}</title></head>
{% endblock %}
{% block content %}
    <div class="titulo_contenedor">
		<span class="view-document-title">{% trans "View Document" %}</span>
    </div>
    <div class="cuerpo_contenedor">
    	<div class="doc_details">
            <label>No. Resolucion</label><br/>
            <span class="doc_details">{{ document.numDoc }}</span><br/>
            <label>Estado</label><br/>
            <span class="doc_details">{{ st }}</span><br/>
            <label>Fecha </label><br/>
            <span class="doc_details">{{ document.date }}</span><br/>
            <label>Visto</label><br/>
            <p class="doc_details">{{ document.visto|linebreaks}}</p>
            <label>Considerando</label><br/>
            <p class="doc_details">{{ document.considerando|linebreaks}}</p>
            <label>Resuelve</label><br/>
            <p class="doc_details">{{ document.resuelve|linebreaks}}</p>
        </div>
        {% ifequal user document.owner %}
        <ul>
            <li><a href="/documents/edit_document/{{document.Get_numDoc}}/">Edit</a></li>
            <li><a href="/documents/send_to_rev/{{document.Get_numDoc}}/">Send to review</a></li>
            <li><a href="/documents/add_colab/{{document.Get_numDoc}}/">Select colaborators</a></li>
        </ul>    
        {% endifequal %}

	{% block comments %}{% endblock %}
	</div>
	<div class="fondo_contenedor"> 
	</div>
{% endblock %}	
